package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 中控对接信息表 实体类
 * 表名：zk_third_user
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "zk_third_user")
public class ZkThirdUser implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * WebScoket连接地址
     */
    @Column(name = "socket_url", nullable = false, length = 128)
    private String socketUrl;
    
    /**
     * 第三方登录用户名称
     */
    @Column(name = "third_name", length = 128)
    private String thirdName;
    
    /**
     * 第三方登录密码
     */
    @Column(name = "third_password", length = 128)
    private String thirdPassword;
    
    /**
     * 租户主键ID
     * 默认值: 1
     */
    @Column(name = "tenant_id", nullable = false)
    private Integer tenantId;
    
    /**
     * 是否删除（0、否 1、是）
     * 默认值: 0
     */
    @Column(name = "is_del", nullable = false)
    private Byte isDel;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time", nullable = false)
    private java.time.LocalDateTime createTime;
    
    /**
     * 创建者
     */
    @Column(name = "create_by", length = 64)
    private String createBy;
    
    /**
     * 更新时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "update_time", nullable = false)
    private java.time.LocalDateTime updateTime;
    
    /**
     * 更新者
     */
    @Column(name = "update_by", length = 64)
    private String updateBy;
    
    @Override
    public String toString() {
        return "ZkThirdUser{" +
            "id=" + id +
            ", socketUrl=" + socketUrl +
            ", thirdName=" + thirdName +
            ", thirdPassword=" + thirdPassword +
            ", tenantId=" + tenantId +
            ", isDel=" + isDel +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
            ", updateTime=" + updateTime +
            ", updateBy=" + updateBy +
        '}';
    }
} 